<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="author" content="lzy">
    <title>lzy-</title>
    <script src="jquery-3.1.1.js"></script>
    <style>
        html,body{
            height: 100%;
        }
        body{
            margin: 0;
            text-align: center;
        }
        div{
            display: inline-block;
            width: 100px;
            border: 1px solid black;
            margin-top: 100px;
            position: absolute;
            cursor: pointer;
        }
        .d1{
            left: 100px;
        }
        .d2{
            left: 201px;
        }
        p{
            margin: 0;
        }
        ul{
            margin: 0;
            padding: 0;
            display: none;
        }
        ul li{
            list-style-type: none;
            width: 100px;
            border-top: 1px solid black;
            margin: 0;
            padding: 0;
            cursor: pointer;
        }
        #result{
            position: absolute;
            left: 150px;
            top: 200px;
        }
    </style>
</head>
<body>
    <div class="d1">
        <p>销售订单</p>
        <ul class="u1">
            <li>订单1</li>
            <li>订单2</li>
            <li>订单3</li>
        </ul>
    </div>
    <div class="d2">
        <p>消费订单</p>
        <ul class="u2">
            <li>订单1</li>
            <li>订单2</li>
            <li>订单3</li>
        </ul>
    </div>
    <p id="result"></p>
</body>
</html>
<script>
    $('div').mouseover(function(index){
       $(this).find('ul').show();
      $(this).siblings().find('ul').hide();
    });
     $('li').click(function(){
            $(this).parent('ul').hide();
            $('#result').text($(this).html());
            
       });
</script>